package mb.view;

import java.awt.Container;
import javax.swing.JFrame;
import mb.model.Diagram;

public class AppFrame extends JFrame {

  private Diagram diagram = new Diagram();  // &

  public AppFrame() {
    super();
    // diagram = new Diagram();  // -
    this.setTitle("Yellow box");  // &
    this.setSize(400, 300);
    Container cp = this.getContentPane();
    cp.add(diagram);
  }

}